#!/bin/sh
# season these to taste
export B_INTERNAL="ip-10-114-185-231.ec2.internal"
export WORKERS_PER_NODE=512
export NODES=5
export EXECTIME=1
export BODY_SIZE=1024
# end edit
export TOTAL_WORKERS=`echo $WORKERS_PER_NODE*$NODES | bc`
export TOTAL_MESSAGES=`echo $TOTAL_WORKERS*60 | bc`
export SWBASE="/sw/mtags-amqp/src"
cd $SWBASE
hg pull
hg update
./amqp_mbench.py p -H $B_INTERNAL -v -s 3 -b $TOTAL_WORKERS -n $TOTAL_MESSAGES -t $EXECTIME -z $BODY_SIZE &
./amqp_mbench.py c -H $B_INTERNAL -v -g -o stats -n $TOTAL_MESSAGES &
